From 0bb3db019a7dbf8bd62aefba94c0c5764da9b702 Mon Sep 17 00:00:00 2001 From: "Daniel F. Dickinson" Date: Sat, 13 Dec 2025 01:29:36 -0500 Subject: [PATCH] postgresql: fix missing symbols at runtime Fixes pgsql-server: the setup fails for any folder Fixes #27228 Sets postgresql-specific configure flags that configure cannot run-test to determine their value. This fixes improperly linked files that prevent database initialization (at least) from working on the device. Signed-off-by: Daniel F. Dickinson --- libs/postgresql/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/postgresql/Makefile b/libs/postgresql/Makefile index 6cdbab9cde..df49f1e6e3 100644 --- a/libs/postgresql/Makefile +++ b/libs/postgresql/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=postgresql PKG_VERSION:=17.5 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MAINTAINER:=Daniel Golle PKG_LICENSE:=PostgreSQL PKG_CPE_ID:=cpe:/a:postgresql:postgresql @@ -119,7 +119,9 @@ PGSQL_CONFIG_VARS:= \ pgac_cv_snprintf_size_t_support=yes \ USE_DEV_URANDOM=1 \ ac_cv_file__dev_urandom="/dev/urandom" \ - ZIC=zic + ZIC=zic \ + pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic=yes \ + pgac_cv_prog_cc_LDFLAGS__Wl___as_needed=yes TARGET_CONFIGURE_OPTS+=$(PGSQL_CONFIG_VARS) -- 2.30.2